/*--
 * Reload.cs: Reloads various aspects of the configuration.
 *--
 * For more information, please visit the Metashell Project site:
 *   http://code.google.com/p/metashell/
 *--
 * (c) 2006 Christopher E. Granade.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; exactly version 2
 * of the License applies to this software.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */

using Metashell.Core;

namespace Metashell.Commands.Basic {

	public class ReloadTransforms : ICommand {
	
		private Metashell.Core.Core core;
		
		public void RegisterCore(Metashell.Core.Core core_) {
			core = core_;
		}
		
		public string name {
			get { return "reload-transforms"; }
		}
		
		public void Run(
			string parameters,
			Metadoc indoc,
			out Metadoc outdoc
		) {
			core.ReloadTransforms();
			
			outdoc.data = null;
			outdoc.format = MetadocFormats.Null;
			
		}
		
	}

}